home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
create6a
/
frmaddfi.frm
next >
Wrap
Text File
|
1999-10-15
|
4KB
|
154 lines
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form frmAddFile
BorderStyle = 3 'Fixed Dialog
Caption = "Add File..."
ClientHeight = 1395
ClientLeft = 45
ClientTop = 330
ClientWidth = 3090
ControlBox = 0 'False
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1395
ScaleWidth = 3090
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin MSComDlg.CommonDialog CommonDialog1
Left = 2760
Top = 1320
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.CommandButton Command3
Caption = "Cancel"
BeginProperty Font
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1560
TabIndex = 5
Top = 960
Width = 975
End
Begin VB.CommandButton Command2
Caption = "OK"
BeginProperty Font
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 480
TabIndex = 4
Top = 960
Width = 975
End
Begin VB.TextBox txtdescription
Appearance = 0 'Flat
Height = 285
Left = 1320
TabIndex = 3
Top = 480
Width = 1695
End
Begin VB.TextBox txtPath
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Height = 285
Left = 1320
Locked = -1 'True
TabIndex = 1
Top = 120
Width = 1695
End
Begin VB.CommandButton Command1
Caption = "Browse..."
BeginProperty Font
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 120
TabIndex = 0
Top = 120
Width = 1095
End
Begin VB.Label Label2
Caption = "Description:"
BeginProperty Font
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 240
TabIndex = 2
Top = 480
Width = 855
End
End
Attribute VB_Name = "frmAddFile"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
CommonDialog1.Filter = "Executable Files (*.exe)|*.exe"
CommonDialog1.ShowOpen
txtPath.Text = CommonDialog1.FileName
End Sub
Private Sub Command2_Click()
'Specifies the of the file in witch save your settings
iniPath$ = App.Path & "\progmansav.ini"
'This saves the description of the file you selected
entry$ = txtdescription.Text
r% = WritePrivateProfileString("Program" & frmMain.List1.ListCount + 1, "Description", entry$, iniPath$)
'This saves the path to the file
entry$ = txtPath.Text
r% = WritePrivateProfileString("Program" & frmMain.List1.ListCount + 1, "Path", entry$, iniPath$)
frmMain.List1.AddItem txtdescription.Text
Unload Me
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
End Sub